package com.esoon.controller;

import com.esoon.result.ResultBody;
import com.esoon.service.LinkManService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName LinkManController
 * @Description TODO
 * @Author 2020/10/19 17:17
 * @Version 1.0
 **/
@RestController
@RequestMapping("/if/linkMan")
public class LinkManController {

    private static final Logger logger;

    static {
        logger = LoggerFactory.getLogger(LinkManController.class);
    }

    @Resource
    private LinkManService linkManService;

    @RequestMapping(value = "/list" ,method = RequestMethod.GET)
    private ResultBody list(){
        logger.info("invoking select linkManList interface , the url = '/if/linkMan/list'");
       return linkManService.getAllLinkMan();
    }
}
